package com.elsa.smart_buffet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elsa.smart_buffet.pojo.Feedback;
import com.elsa.smart_buffet.pojo.Report;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface FeedbackMapper extends BaseMapper<Feedback> {

    List<Feedback> selectFeedbackInOrderByTime(@Param("date1") String date1, @Param("date2") String date2);

    List<Report> selectReportInOrderByTime(@Param("date1") String date1, @Param("date2") String date2);

    List<Feedback> selectFeedbackBySearchData(@Param("data") String data);

    List<Report> selectReportBySearchData(@Param("data") String data);

    List<Report> selectReportByCIdAndStatus(@Param("data") String data);

}
